package stylistcrm.core.services.security.dto;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by yanwc on 2016/9/7.
 */
public class ViewAuthorityDto {
    private String name;
    private String code;

    public NavigationDto getNavigationDto() {
        return navigationDto;
    }

    public void setNavigationDto(NavigationDto navigationDto) {
        this.navigationDto = navigationDto;
    }

    private NavigationDto navigationDto;
    private List<DataAuthorityDto> listDataAuthority;

    public void addDataAuthority(DataAuthorityDto data){
        if(data == null)return;
        if(this.listDataAuthority == null){
            this.listDataAuthority = new ArrayList<>();
        }
        this.listDataAuthority.add(data);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<DataAuthorityDto> getListDataAuthority() {
        return listDataAuthority;
    }
}
